<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类添加</title>
    <link rel="stylesheet" href="/libs/layui/css/layui.css">
    <!-- jquery放在layui.js的上面,layui依赖于jquery -->
    <!-- 引入jQuery -->
    <script src="/libs/jquery.js"></script>
    <!-- 引入layui.js -->
    <script src="/libs/layui/layui.js"></script>
    <!-- 引入axios -->
    <script src="/libs/axios.js"></script>
    <!-- <script src="https://unpkg.com/axios/dist/axios.min.js"></script> -->
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">分类管理-分类添加</div>
        <div class="layui-card-body">
            <!-- 提示错误信息 -->
            <!-- <h3 id="error" style="color:red;font-size: 24px;"></h3> -->
            <form class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">分类名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="cate_name" placeholder="请输入分类名称" lay-verify="required|checkCateName" autocomplete="off" class="layui-input" onblur="checkCateNameUniq()">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="text" name="sort" placeholder="请输入排序" autocomplete="off" lay-verify="checkSort" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>


</body>

</html>

<!-- 引入页面的js文件 -->
<script src="/js/cate/cate_add.js"></script>